﻿<UserControl x:Class="WaveTech.Scutex.Manager.Screens.ProductsScreen"
						 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
						 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
						 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
						 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:themes="clr-namespace:WPF.Themes;assembly=WPF.Themes" mc:Ignorable="d" 
						 d:DesignHeight="300" d:DesignWidth="300">
	<UserControl.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="/DataTemplates.xaml" />
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</UserControl.Resources>
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="*" />
		</Grid.RowDefinitions>
		<DataGrid x:Name="gridProducts" Grid.Row="0" ItemsSource="{Binding Source={StaticResource productsData}}" AutoGenerateColumns="False" 
			CanUserAddRows="False" CanUserDeleteRows="False" SelectionMode="Single" VerticalAlignment="Stretch">
			<DataGrid.Columns>
				<DataGridTextColumn
						Header="Name" Width="1*" IsReadOnly="True"
						Binding="{Binding Path=Name}"/>
				<DataGridTextColumn
						Header="Description" Width="2*" IsReadOnly="True"
						Binding="{Binding Path=Description}"/>
			</DataGrid.Columns>
		</DataGrid>
	</Grid>
</UserControl>